
#include "SWidget/SInputGroupButton.h"
#include <Math/Color.h>


#define LOCTEXT_NAMESPACE "WidgetGroupInputGroupListLog"

void SInputGroupButton::Construct(const FArguments& InArgs)
{

	GroupKey = InArgs._GroupKey.Get();
	ClickedEvent = InArgs._ClickedEvent;

	ChildSlot
		[
			SNew(SButton)
			.Text(FText::FromString(GroupKey))
		.OnClicked(this, &SInputGroupButton::CallClickEvent)
		];

}

FReply SInputGroupButton::CallClickEvent() const
{
	ClickedEvent.ExecuteIfBound(GroupKey);
	return FReply::Handled();
}
